package com.baolai.service;

import com.baolai.entity.GoodsUser;
import com.baolai.result.Result;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.stereotype.Service;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

@Service
public interface GoodsUserService extends IService<GoodsUser> {

    GoodsUser getUserByAccount(String account);

    Result userSign(GoodsUser goodsUser);

    Result userLogin(String account, String password, HttpSession session, HttpServletRequest request, HttpServletResponse response);

    IPage<GoodsUser> listUser(Integer current,Integer size);

    /**
     * 只能修改姓名和密码
     */
    boolean updateUser(GoodsUser goodsUser);

    boolean deleteUser(String account);
}
